package com.esender.userpoints.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface UserPointMapper {

    @Select("select count(*) from user_points_idempotent where id = #{id}")
    int findById(String id);

    @Insert("insert into user_points_idempotent(id) values(#{id})")
    void save(String id);
}
